package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.Drivers;
import com.ruoyi.system.api.domain.Passengers;
import com.ruoyi.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;

@FeignClient(contextId = "IDriversService", value = ServiceNameConstants.DRIVERS_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface IDriversService {

    @PostMapping("/drivers/selectDriversByPhone")
    public Drivers selectDriversByPhone(@RequestBody String phone) ;
}
